﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HaumDisplay
{
    public class GraphicHelper
    {
        /// <summary>
        /// 图像原比例
        /// </summary>
        public float ratio;
        /// <summary>
        /// 图像缩放
        /// </summary>
        public float scale = 1.00f;
        /// <summary>
        /// 缩放图像绘制尺寸
        /// </summary>
        public Size scaleSize;
        /// <summary>
        /// 图像偏移量
        /// </summary>
        public PointF offset = PointF.Empty;
        /// <summary>
        /// 是否显示缩略图
        /// </summary>
        public bool showThums;

        /// <summary>
        /// 操作模式：记录操作模式或当前绘制图型类型
        /// </summary>
        public HAUM_GRAPHIC_TYPE type = HAUM_GRAPHIC_TYPE.None;
        /// <summary>
        /// 绘制状态标志位
        /// </summary>
        public HAUM_GRAPHIC_STATUS status = HAUM_GRAPHIC_STATUS.Done;
        /// <summary>
        /// 画笔粗细
        /// </summary>
        public int size = 1;
        /// <summary>
        /// 画笔颜色
        /// </summary>
        public Color color = Color.Green;
        /// <summary>
        /// 字体
        /// </summary>
        public Font font = new Font("微软雅黑", 16, FontStyle.Bold, GraphicsUnit.Pixel);
    }
}
